//
//  UILOcalNotifaction+Extension.swift
//  DaRings
//
//  Created by 尹琼 on 2022/12/8.
//

import UIKit


extension UNNotificationRequest {
    
    public static func warning(identifier: String, content: UNMutableNotificationContent, trigger: UNTimeIntervalNotificationTrigger = UNTimeIntervalNotificationTrigger(timeInterval: 5, repeats: false)) {

        let request = UNNotificationRequest(identifier:identifier, content: content, trigger: trigger)
        UNUserNotificationCenter.current().add(request)
    }
    
}
